fixed LoadScript assert bug