Fixed ADC bugs.