If it was switched to twelve volts(wire to resistor), the polarity would probably have also been switched.