Regression test
Fix #1309