fixed bug in joomla 2.5