Fix resistor colors updating when edited