fixes in load and save bson