Fix wrong total num of chunks