fixed reindex issue