regression test for #683