fix init error when injecting file of urls.