erase some useless states of worker thread