fixes #367
Merge pull request #368 from schmidtc/issue367

fixes #367