fixed search index bug