Good fix to get you home, but by no means is this a viable permanent solution. You're putting amperage through an 1/8th inch piece of junk metal... Lol
Anyways, as noted, clean and tighten are first steps. If problems continue afterwards then you'll need to isolate the problem by checking all connections, grounds and such at the battery and alt and frame.
Good luck!