A fix in BSON saving.