fix #20823: Possible access violation