Fix priority sample grouping to be per instance.