fix script load issue