fixed bug in stream