fixed plugin deactivation