Welds shrink and pull as they cool. Short sections of weld help, letting the piece cool also, as would alternating inside and outside to balance the stress. I am not much of a welder, but that is a pretty big challenge to try and keep a long skinny part straight after welding.
Good luck.
Mark.