fix for NaN compare operators