Correctly write linked event index.