Some fixes in secant.