Joomla function bug fixed.