Fix URL not set bug