fix gzip problem on second pass