fix bson decoding error