fixed the unable to delete group issue, it's caused by not removing the
group from org.groups(and also found issue that caused group's hash code
changing after added to the Set)