fix bson quirk