Fixed chunk-streaming bug