Fixed bug in Import and Archive housekeeping.