fix bson warning