Fixes parentheses recursion errors