Fix chunk count bug if a chunk was missed.