Fixed search index bug