Fixed up create index