fix for issue #137
Merge pull request #138 from TobyGoodwin/master

fix for issue #137