Reindex ids