Doesn't work in joomla 1.7