fix a matching issue for grouping four domains together