fix cond thread