fix that problem

index wasn't index