Fix to update_archive script