fixes issue #39
Merge pull request #40 from bensler/master

fixes issue #39