fix calibration