fix index registration order of structure