Fix stream bug;