Fixed bug where link dialog wouldn't update the link text properly.