fix bug that always returns false when loading a model