Fix the call to np.min so that the first argument is a sequence.