Fix regression introduced in [24381]