Fixed bug with infinite loop on parenthesis