Fixed one of the calibration bugs