fixing pin reset