fixed motor calibration bug