fixed a calibrator bug