Fix bug in HistoryViewController table view.