Added in Joomla module and this time code is accurate