subdomain bug fix