fixed bug in linkIstanza