fix self exception when subdomain exist