bug fix for update_archive