Fix for "parentheses not balanced" error.