fixbug: thread stop