Fix create index