Search index bug fix