Fixes some parenthesis processing errors