Chunk size bug fixse