Fix one off error in ADC.