Fixes to the scanning of isNumber