fix chunking