fix GetURL is not defined