fix set index