fixing ADC ref selection