regenerates links from info of shape