fixed bug about no matching parenthesis