fix bug of tstat not running when involving crontabl