Fix ternary operation.