Fix typo in ternary expression