bug with entity type name fixed