Fixed small bug with model loading.