fix ternary typo