Fix generation of reset button