fix chunked transfer initialization