Fix issue loading tasks index before tasks fetched