Fix deletedEntities list to be clear