fix stream using