solve the thread bug after long time debugging!!!