Fixed undo, now it works on bigger point sets