patch for issue #161
Merge pull request #231 from xiaoerlyl/0.4.1.0

patch for issue #161