There was a bug in the script. It was fixed with the 6.2.1 version I think, certainly a fix was posted. However, it went along with .net
I may have the fix in my project, but I changed the battle algorithms of my game to eliminate ATK as a stat, and rewrote a few associated things, so it might just be that I changed something to render the bug redundant rather than ever getting it fixed.