fixed model loading bug