Bug fix for parentheses