fixes #1037
Merge pull request #1038 from kevinearls/master

fixes #1037