[MongoDB] Fixed to work with the current Core.