diff --git a/VECTO/GUI/MainForm.vb b/VECTO/GUI/MainForm.vb
index 57b05e87a44e351fb20fc5f1002a5090e8625845..2f65c7844547f01dcd3654fbcc1ff997dd84fcc6 100644
--- a/VECTO/GUI/MainForm.vb
+++ b/VECTO/GUI/MainForm.vb
@@ -1031,8 +1031,8 @@ Imports TUGraz.VectoCore.Utils
                 runsFactory.ActualModalData = cbActVmod.Checked
                 runsFactory.SerializeVectoRunData = cbSaveVectoRunData.Checked
 
-                For Each run As IVectoRun In jobContainer.AddRuns(runsFactory)
-                    fileWriters.Add(run.RunIdentifier, fileWriter)
+                For Each run as integer In jobContainer.AddRuns(runsFactory)
+                    fileWriters.Add(run, fileWriter)
                 Next
 
                 ' TODO MQ-20200525: Remove the following loop in production (or after evaluation of LAC!!