fix error in ADC