Correct wrong undefined comparisons