fix for #7
Merge pull request #12 from ddavison/fix#7

fix for #7