Add thread to fix bug when user clear event log