fix bug in search index