fix for deletion of entity equals