fix issue #8
Merge pull request #9 from dryabov/master

fix issue #8