isNaN bugfix