Tweaked fix for refs #23946; thanks Claude.