fixed pendingSearch issue