[invariant] fix integration in rk4