Fixed #23883 -- Stopped flatatt modifying its argument