fixed some url fetching bugs