Make sure we get the distinct('grouping.id') even when specifying the state