where did you wire the switch into the circuit? if you wire it onto one of the output wires, there will still be a complete circuit from the battery to the inverter.

i am a nerd, if you don't like it, i will cut you with my lightsaber