Fix AnalogOut bug