Fixed bug in the loader of models