fix #266
first commit
Merge pull request #267 from xiechao06/issue266

fix #266