fixed issue #6
Merge pull request #14 from kasmus/master

Fixed issue #6