bugfix: using deepcopy to make sure we're keeping the sets in the raw indexes.