refernce: fix ODE math