fix NaN comparison, including null values