fixed reset button bug