remove stream circular reference