I had the same problem, and sorted it exactly like Devonaid above
Do check the middle hinge as well though, because the roof seal traps water that rots the roof, and i eventually had to reposition all of the hinges.
If you need rivets and a pop riveter (and any help) please let me know!