fixed an issue with the reset button