Dangling link removal