corrected model loading