bug fix removing last stream in streamgraph