Fix causing problems for api connecting to joomla in correct way.