Update linksLength on link removal