fix ternary with parens