make plugin compatible with latest Piwik version