fix timer thread