Fix textstream