Fixed the problem that calibparams were not defined when calibration was turned off.