fix bug in chunking