fix #32235 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit cb739f533358a8cf6e1b6875b3d4f0da3bfa7c95)