tail light goes out when I hit the brakes

I just cleaned the tail light sockets and used new bulbs when I put the car on the road in November, and used a good wiring harness, it may be the ground tho, because after I got it running, the wife said the brake light was dim on the driver side, pulled the ground wire off and put it back, and it was as bright as the passanger side. thanks.

Mark