proposed fixe for issue 148
Merge pull request #153 from tristanwietsma/master

resolves issue 148