calibration.cpp fix