fix email deactivation