Fix multiple sites with the same substring being selected.