fix one bug in isNumber function