Fixed reset button bug