Fixed calculation of best objective function value.