Fixing the indices in each stream