Fixed reset button functionality