It could be a combination of incorrectly wired sockets and poor ground. If you combine the 2, you can end with all kinds of messes.
I point this out because it has been a problem in the past. The tailight grounds are the metal tabs contacting the housing, so there are no ground wires for the tailights.