repair model loading