fixed incompatiblility bug with new mesolve and sesolve API in depracated odesolve