Fixed issue #171
Merge pull request #172 from umpirsky/fix/issue-171

Fixed issue #171