fixed some issues with solve_ode