fix cleaning links from excess positions