fix for #50
Merge pull request #51 from mac2000/master

fix for #50