Declare settings variables before reset to avoid an error.