patch close parenthesis