fixed behavior of reset button