fixed model creation problems