Correct error in determining minimum J