A device to improve the safety of head, heart, muscle and organ electrical stimulation devices during MRI scanning. The device consists of introducing an alternative second loop containing an energy dissipating device, with the possible addition of means to divert most of the induced energy during the MRI scanning into the second loop and into the energy dissipating device, thereby protecting the electrodes, the battery and the controlling electronics of the electrical stimulation device.