The problem is likely in the connector from the ignition switch to the bulkhead.

Mine would occasionally do that, and when I looked deeper into the problem, I found this: