fix putStream for streams2