fixed hook calls during automatic archiving