fixed archiving bug