fix some MsgPack bugs