fixed the click event of reset button