bugfix: views for entities with inheritance were created incorrectly