Calculate subdomain length fix.