fix group deletion code, again