fixed parsing of model files