Fixed incorrect syntax errors with parentheses