fixed problem with loading model file