Fixed the bug that some variables wouldn't reset when a new lexing process started