Fix Index variable