 			if (lnchPrgIndex > 0)
 			{
 				if (strRetVal)
-				ProgPIDMast[lnchPrgIndex] := 0
+				PrgPIDMast[lnchPrgIndex] := 0
 				else
-				ProgPIDMast[lnchPrgIndex] := strTemp2
+				PrgPIDMast[lnchPrgIndex] := strTemp2
 			}
 			else
-			ProgPIDMast[-lnchPrgIndex] := strTemp2
+			PrgPIDMast[-lnchPrgIndex] := strTemp2
 		}
 		else
 		{

		{
			loop % PrgNo
			{
				if (ProgPIDMast[A_Index])
				{
				waitBreak := 0
				SetTimer, WatchSwitchOut, 1000

			if(!ErrorLevel)
			{
			PrgPID := 0
			CleanupPID(PrgLnchIni, currBatchNo, PrgLnchMon, lastMonitorUsedInBatch, PrgMonToRn, PrgNo, PrgPIDMast, presetNoTest, PrgListPID%btchPrgPresetSel%, PrgStyle, dx, dy, PrgLnchHide, PrgPID, selPrgChoice, Fmode, scrWidth, scrHeight, scrWidthDef, scrHeightDef, scrFreqDef)
			if (!batchActive)
			Return
			}
