Fixed ternary condition