stream: fix interleaving