Fixed another undo bug for updated tasks.