Fixed bugs in archive list reading code