Modified some problems when creating and modifying a link.