Correct the handling of the result of the comparison method.