bugfixing for search index