Fixed bug with models not being loaded properly.