Oops, missed a bug in stream_flush, and moved the body_returned