Pneufab
+1y
If you can, weld one side then weld the opposite side of that weld. As you weld the heat will shrink the metal and cause it to pull. If you weld the opposite side, it will cause it to pull it back and kinda counteract the first welds ill-effects.
When doing rectangular tubing I usually weld the top and bottom first since the miter joint will not be able the pull the tubing in any direction. Then I weld the sides. This seems to help minimize warping.
Also if you can fit the rail back into your fixture, slowly heat up the weld joint and let it cool. It should relive some of the stresses in the metal and relax it back into shape. Be carefully though, too much heat and it will make it worse.
Good luck
t