Fixed duplicate link bug when editing link