Fixing bug with MongoDatabase sources