Fix undefined var MongoModel