fix mismatched parentheses