solved some bugs for handling of domaingroup