fix sintax on index