Modified some problems when creating and modifting a link.