Fixed hard crash on calibration.