Probably this is a global related problem. Just put all of your code inside a single function and call this function (e.g., function main() ... all your code .. end; main()) .
Probably this is a global related problem. Just put all of your code inside a single function and call this function (e.g., function main() ... all your code .. end; main()) .