Fixed bug with calibration setting