Fix warning on plugin activation