fix leaking fk_solver_
fix leaking jac_solver_
fix segfault