fixed async script loading