fix the bug in stream_test.erl line 534