autocalibration bug fixes