Fix stream buffer slice