fixed NaN glitch

nothing is ever equal to NaN, not even NaN.