[HistoryView] Check the length of items