fix delete group functionality