fixed inheritance in Entity Hierarchy