Rest index when mode switched