Fix bisection method.