fix for #19
Merge pull request #20 from atr111/master

Fix for #19