Fix function order for piwik