Since no one else reported something like this in the years while hundreds of people used the engine, most probably it's not a bug but an incompatibility between two scripts you're using - something else interferes with the code of the battleengine.
So to solve this, we need links to the scripts you're using - links to their websites with their descriptions and manuals, not only the names.
And you should help by trying to pinpoint which scripts are involved, because most likely you're using dozens of scripts. You can do this by temporarily disabling scripts and test if the problem is still there with the script disabled (not disabling the battleengine of course)