archiving bug fix