fixed multiple link detection