fixed timer thread issue