undo bug fix

can undo "add index some task" properly