fix to secant solver