fix up resistor numbering