fixed issue #8
Merge pull request #9 from zither/iss8

fixed issue #8