fix to script loading