fix undo after creating a link and hovering over it