Fix stream connection