Fix error in motor_driver