Fix magnetic field