Update the index based argmax. But got some strange behavior. Need to figure out.