fix #11889
Added test for #11889