bugfix for multi-layer model iheritance