fix for issue #172
Merge pull request #175 from anzorb/master

Fix for issue #172