fixed bug in GetURL()