fix link ids