resuming a run creates duplicated viewSetups in the XMLs

When resuming a run, the identical ViewSetups are appended to the XML files instead of overwritten.