I have an install-script that uses a lot of variables and installs several apps. But consequently the last two subroutines are not executed. When I reboot the machine and runs the script again (now now anly the last two subroutines are executed) everything's getting OK. Could the reason be that I'm using too much variables? If so, how can I clean up my environment without restarting?

Thanks, Martijn