 	SetTimer, WatchSwitchOut, %timWatchSwitch%
 	else
 	{
-	CleanupPID(currBatchNo, targMonitorNum, lastMonitorUsedInBatch, presetNoTest, PrgListPID%btchPrgPresetSel%, PrgLnchHide, PrgPID, PrgChgResOnClose, selPrgChoice, waitBreak, 1)
+	CleanupPID(currBatchNo, targMonitorNum, lastMonitorUsedInBatch, presetNoTest, PrgListPID%btchPrgPresetSel%, PrgLnchHide, PrgPID, selPrgChoice, waitBreak, 1)
 
 		if (PrgPID)
 		{

return retVal
}

CleanupPID(currBatchNo, targMonitorNum, lastMonitorUsedInBatch, presetNoTest, ByRef PrgListPIDbtchPrgPresetSel, PrgLnchHide, ByRef PrgPID, PrgChgResOnClose, selPrgChoice, waitBreak, batchWasActive := 0)
{
testPrgTerm := 0, temp := 0, strRetVal := "", dx := 0, dy:= 0
; The outcome of this utility depends on whether user is in Batch or Config screen which mixes things up a bit.

WinMover(PrgLnchOpt.Hwnd(), "d r")	; "dr" means "down, right"

	if (defPrgStrng != "None")
	FindStoredRes(targMonitorNum, ResIndex, ResIndexHwnd)
	;ChooseString may fail if frequencies differ.

	if (PrgPID)
