Fixed bug with model loading.