fixed bug creating entity with no "name" field