fix in _run_generation for handling names

follow up to handling of duplicates in optimization fix, now also works
for outcome optimization