Fix issue creating enum entity types