fixed bug, when stream with data was ignored