Test case for #1451
Fix #1451
Merge pull request #1458 from sjinks/issue-1451

Fix #1451