Debug of undo

Debugging undo where the task is still in archive after undoing the
delete