anyone help me on a piece of elec problem?

I'm no electrical expert but if I remember right the following is what seems to be happening.

Sounds like your resistor is being fed from the accessory side of the ignition switch. There should be a ignition outlet on the back of the ignition switch. It will have power both when cranking and with the switch in the on position.

The accessory side of the switch has no power during cranking. It only gets power after releasing the key and being in the on position or the accessory position then it gets voltage.