I just checked, this is actually the same as the primary group on my machine. Shouldn't we remove the primary group from the group list before selecting the first element?