fix url retrieving