Fixed updating history table