HistoryTable update correction.(Ugly but efficient)