fixed calibration error