fixed issue #675
Merge pull request #678 from safiyu/issue1

fixed issue #675