corrected problem for reset