fix bug with link generation