Fix regression in #29933