fix if chunksize is None