Fix resetbutton bug