fixed chunk-ID not being incremented