Undo of insertions bug fixed