fix magnetic field manager