bugfix: chunked mode
Merge remote-tracking branch 'upstream/master'