Fixed the reset button bug issue.