fix serialization bug
Merge pull request #83 from huafengw/master

fix serialization bug