fixing issue with multiple links