Fixed issue with deleting groups