fix run error in long time