bug fix in fetch_from_url