fix #22048. Thanks to ABL!