Fix ternary operator's return value.