fix compatibility with Mongo 2.4