Fixed script loading error