fixed issue 9
Merge pull request #19 from TheBrownJacket/master

fixed issue 9