Check groupmode correctly.