Fix badly generated index name in generated schema