index values fixed, and index of max and min functions (argmax, argmin) fixed.
filename fixed