fix data lose
fix pending threads