bugfix for #42
Merge pull request #43 from eemeli/fix_42

Fix for #42