bug in some rare case when the download got currupted and the gzip file isn't valid