Test for #2252
Fix #2252