fix #374
Merge pull request #375 from 2072/issue374patch

fix #374