Fixed search index refreshing.