bugfix when changing the stream format