fix unbalanced parenthesis