Fixed deactivation plugin