Fixed a bug in isNumeric