fixing url fetching