Fixed bug where selecting the same stream twice caused an error