I believe you are feeding both battery+ and battery- to the lights, you only feed the lights with battery- (green wire ie earth) from the ignition switch lights get they ac volts from the alternator and not the battery.
Green wire should go onto the (L) on the ignition switch.
And the red wire for lights should come from the alternator AC side.