so, if you use kix4.xx ref, it should be there.
anyways, if you use version compatible with the setting, your script won't work.
if you use different type of version (that does support it) your script still does not work properly.

so actually, you changed something else there middle of not working and working.
this part seemed to be irrelevant.
_________________________
!

download KiXnet