Deleted groups bug fix