Fixed links created when using a custom name

Extra links were being declared when the user created a custom link name. An else was added that removed those extra names only if the custom name was declared.