Update link IDs