Minor bug fix in group deletion