Fixed slight bug in getMongoCollection