if at the top of code before define add the follow code

Code:
pause 2000
@ reset
it's ok