fix reindex issue if document include type