Fix a bug because almost everything isNaN.