Fixed error in archiving