fixes model loading