Fixed ternary operator