Fixed ternary typo