correct the number of chunks