fix isNan on FF