Fixing unmatched parenthesis