fix rwstream.go bug