Added try catch in case of fetching error.