Fixed bug in recursive scan; better gzip compression ratio