SearchWorker race condition fix