fixing archiving bugs