fix issue 178
Merge pull request #179 from shaoshal/master

fix issue 178