fixed an issue with ent deactivation