Fix return value of logical operators.