Fixed some archive related bugs, still need to fixed a bug when reindexing in archive mode?