fix for issue #58
Merge pull request #75 from RcColes/master

fix for issue #58