Fix for MongoDb