fix issue with IDs removed from groups