fixed model errors