fix a bug in calib