Offset fix and calibration