Fix archiving of done and re-entered tasks