fixed the script preview not autoloading bug