Fixed the parent contract with entities.