Magnetic sensor fix