Fixed an issue with the scaling of models.