fixed cleanEntities redux