fixed the history table clear thingy