Fix #1198
Unit test
Merge pull request #1233 from sjinks/issue-1198

Fix #1198