fixed script staging in CommitOrExit function