ignition
Sounds like you are running the igniion from the wrong contact on the switch itself. Disconnect the starter and have someone turn the key as if to crank it. You should still have around 12 volts or so at the coil. If you don't, you are running off the accessory and not the ignition. When you stop cranking the 12 volts would be there again.