Forgot reset handling for flag logic