ATB Battle System Script Problem

Heya All !
I am having a problem with ATB Battle system script here's a lik to the video for better explanation 
 









Short story long ... Whenever the enemy dies on his own turn this problem occur ( enemy kill himself ) 
I suck at scripting so I changed that thing to 1000 as it is shown on the video and the problem was fixed ??? I dunno if it is really fixed or not 
I'm afraid of the after effects later or something so any advanced scripters can find a real solution to it ?
thnx in advance !
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please edit your post to provide a link to the Fomar script you are using, so that people do not have to go hunting for it.  It will help them to help you. 
Here's the link 

http://pastebin.com/raw/s1bfWGRh
 
No one aswered my question so imma just bump this post :x 

Original thread: https://forums.rpgmakerweb.com/threads/atb-battle-system-script-problem.72709/