fixes intelligent matching for groups bug