fix for #196
Merge pull request #206 from hzgraham/master

fix for #196