timer thread fix