Fixed gzip file reading