fix bug in stream_read cause big file read fail