Fixed NaN comparison bug.