fix group checking