Fixed #10212 regression because of #111149.