Fix many relation link generation