error managing to the index