Lost RESET if statement