script loading fix