when computing total domains, ignore bad domains