Improved mag. calibration