 
 pressListBox:
 	Gui, Submit, NoHide
-	if (RenamingMask = 1)
+	if (RenamingMaskNumber = 1)
 	GuiControl,, text_example, Example: `n"samurai-vs-ninja.dem" will be renamed to "samurai-vs-ninja_de_dust2.dem"
-	else if (RenamingMask = 2)
+	else if (RenamingMaskNumber = 2)
 	GuiControl,, text_example, Example: `n"samurai-vs-ninja.dem" will be renamed to "de_dust2_samurai-vs-ninja.dem"
-	else if (RenamingMask = 3)
+	else if (RenamingMaskNumber = 3)
 	GuiControl,, text_example, Example: `n"samurai-vs-ninja.dem" will be renamed to "2007-05-03_de_dust2_samurai-vs-ninja.dem"
 	else
 	GuiControl,, text_example, Example: `n"samurai-vs-ninja.dem" will be renamed to "2007-05-03_samurai-vs-ninja_de_dust2.dem"
 return
 
+;############################### MAIN Programm ###############################
 ButtonStart:
 FormatTime, current_time
+ParsingDemofiles.Delete(1, 3)
 folder_demofiles := ""
 filelist := ""
 filelist_failed := ""

﻿; ===================================================================================
; AHK Version .........: 1.1.23.01
; Version .............: 1.02 (AHK)
; Release Date ........: 2016-02-10
; GitHub ..............: https://github.com/chao-samu/demo-file-renamer
; Author ..............: chao-samu
;------------------------------------------------------------------------------------

	{
		MsgBox % "No files found!"
		GuiControl,, ProgressBar, 0
		GuiControl, Enable, RenamingMaskNumber
		GuiControl, Enable, Cancel
		GuiControl, Enable, Start
		return
