Fixed ternary operator syntax.