fixed the markAsDone undo bug when in different views