Fixed assignment error in search-worker.