PX no longer switching off

I have had a nightmare!
Unfortunately since replacing the bulb in the headlamp of my PC it no longer turns off with the key. In fact the ignition key is now irrelivant as the bike now starts it without the use of the key.
I have looked to see if there are any obvious wires that have come disconnected, but there doesn’t seem to be any.
Does anyone have any idea what could be causing this and if possible any solutions.

Check here:
http://www.scooterhelp.com/electrics/pages/VSX1T.px200.html

thanks very much for that Leif.

Original von leif: Hi! The green outer cable, on the ignition coil, might be lose there or in the other end, at the ignition lock. When turning the key to the "off" position you kill the engine by shortcutting that terminal of the coil with ground.

leif

[:dance1:]

Hi!
The green outer cable, on the ignition coil, might be lose there or in the other end, at the ignition lock. When turning the key to the „off“ position you kill the engine by shortcutting that terminal of the coil with ground.

leif

[:dance1:]