fix bug thread can not start again
fix delete bug