fix data stream