fix motor controller