fixed undo bug w/ cursor