BSON parsing bug fixed