minor fix in subdomains handling