How I repaired mine. 6mm plywood cut from that 4 45 deg triangles. Jacked the gate back up square screwed the triangles to each of the four corners that should prevent it dropping out of square.then paint the triangles don't leave them bare. Alternative is using four metal flat corner brackets. paint with paint for metal.
BB, November 2009