Fixed minor bugs with motor overcurrent.