bugfix: chunked mode