Perhaps a scope issue.

What version of KiXtart are you using and please post the code if you can so that we can review it for potential errors that may be causing it.

You could also download and use KIXSTRIP from MCA's site.
http://home.wanadoo.nl/scripting/

That might point out missing or invalid script structure.