Fix threadsearch