Reset subdomain when domain is set