attempting to fix BSON bug