here's a bug in the chunking logic. The chunk_number variable is initialized to 1 but never incremented, so all chunks get the same chunk number, and the overlap logic might be interferin ...