Fix groups reset issue.