fixes #535
Merge pull request #541 from andyperlitch/#535

fixes #535