fix reset button bug