Fixes an old bug with subdomains.