fix subdomain bug