Generate the missing indices.
Merge pull request #1339 from benallard/patch-1

Generate the missing indices