fix #246
fix #246
Merge pull request #248 from xiechao06/issue246

fix #246