fix for issue#45
Merge pull request #46 from changgengli/master

fix for issue#45