Fix set index