Fix create_index call