Bugfix: Problem with primary dataset collection on cloned histories.