fix parens unmatching problem