fix issue149
Merge pull request #164 from xiechao06/issue149

fix #149