Fix gzip match bug, #8, #9, #10