Two possibilities. One you have a bad ground on those lights. They share the same ground and when it is poor, the lights ground through the other one.
Two, you have it wired wrong. The wire colors usually are wrong on the new lights, so you must check them first.
Pissing people off on the "net" since 1983.
Land Rover. Turning owners into mechanics since 1948.