fix unbalanced parens