Regression test for #1062.
Temporary fix of #1062.