Fixed parenthesis parsing problems