Fixed Connection issue in search