motor calibration bugfix