fixes #186
Merge pull request #191 from nwin/master

fixes #186