Make it compatible with mongo 2.6