Help - batch set ini setting dont work

edt_CstInputFormat.text = "hallo"
 
 
on btn_SetInput pressed do
(
	if edt_CstInputFormat.text !="" then
	(
	setIniSetting improterSetting "Batch" "Import" ("." + (edt_CstInputFormat.text)) as string;	
	setIniSetting improterSetting "CostumFormat" "ImportCostum" (edt_CstInputFormat.text) as string;
	)
	else (MessageBox "         You need to fill format first ! for example : PRJ and press set button \n\nNote: Only Imported files that supported by 3dsMax importer only that will work" title:"3ds Max")
)

I wrote the script to set ini setting like something above, but something didnt work as I expected, say from script I wrote it should resulting like this in my ini setting :

[Batch]
Import=.hallo
 
[CostumFormat]
ImportCostum=hallo

but instead something like that it resulting like this

my previeous edt_CstInputFormat.text = "world"

[Batch]
Import=.hallo
 
[CostumFormat]
ImportCostum=world

so basiclly instead update both entries it only update one entries only which is first line when command execute, which is :

[Batch]
Import=.hallo
[CostumFormat] ImportCostum=world

didnt updated to be something like this :

[CostumFormat] ImportCostum=hello

How to solve this problem, I want to both entries updated when I press the button ? btw I m workin in max 9 and 2009