Fixed a logic error that prevented the models from loading