Fixed checkNumber()