Correct parentheses elimination after parsing