Index next idx/fcn combination calculation bug fixed.