fixed bugs in LoadScript.vi