fix miswritten isNaN