Fix indexing records on create.