fixed bson bug