My guess is that the script from AAI programmable vehicles doesn't take burnt results into account.
I have not yet found the time to take a closer look at the script.
But I suspect that the Earendel has to make an adjustment to his script, so this can work as expected.
If have the time you can gently ask Earendel to take a look at this.
Id have this not done by my self for now because I hate it to ask other modders if I can not point them at the exact spot and also come with a good solution... :>
And I'm to busy at the moment with refining my mods and code basis, I have now six persons who playing with my mods in various variants with other mods, and the results/reports take 100% of my time that I can affort for modding. But this problem is on my list, and I think after the next 3-4 weeks I have time to look into this and then report to Earendel and ask him for a patch of his mod.