fixed error in isNumeric