Fixed error after merging MagneticFieldSensor