Fix account deactivation bug