Magnetic field is not working