fixed model inheritance