fix errors in group selects