Changed motor controller reset logic