Fixes archiving process