bugfix for adc init