Fixed error in link detection range