Aftermarket. Did not see any switches. Connection is about 2 feet from bulb. I removed the bulb & attached wires to the bulb contacts to test & same issue. Looks like inside structure of hatch is plastic or fiberglass so can't ground to it so as a test I grounded to a bolt on hinge but did not change anything. I am thinking it has something to do with the body control module because the voltage seems to fluctuate??