fix bug that destroyed inheriting when building search index