fixed problem where name not checked for uniqueness across all Entities