fixed some corner cases with read chunking changes