Fixed Scriptbuilder Restarting

Fixed issue with scriptbuilder plugins not working the second time they are run.