Fix unbalanced parentheses