Fix primary groups.