Fixed bug in isNumber