fixes #173
Merge pull request #175 from lahmatiy/issue-173

Fix issue #173