fixed issue #104
Merge pull request #166 from xuzhen/master

fixed issue #104