fixed bugs on search index