Fixed close parenthesis bug