Plugins: fix deactivation.