fixed bug in MongoInstance