Fix check for wrong ActivityLink target.