Fix calibration crash