fixed #3995
Merge pull request #41 from pipu/#3995

fixed #3995