fixed small (but bad) bug in streamout