(bug fix)- link generation bug fix