Added refetching if data fetching fails.