Fixed loading of models.