When in doubt check all lights are grounded, then check your grounds again. My tractor haulin trailer lights used to do random things until I : 1) sand my ball off a little or 2) I hook up and drive about 3 miles and everything starts working. I ran an extra ground to the frame of the trailer and a ground from my truck frame with butt connectors. Now they work great.