Fixing misplaced parentheses