Fix DOM and reset_pin2