fix issue in link selection
fix issue in link selection