I'm considering a symmetry transformation on a Lagrangian
$$ \delta A = \int L(q +\delta q, \dot{q} + \delta \dot{q} , \ddot{q} + \delta \ddot{q}) dt $$
the general variation takes the form
$$ \delta A = \int \frac{ \partial L}{\partial q} \delta q + \frac{\partial L}{\partial \dot{q}} \delta \dot{q} + \frac{\partial L}{\partial \ddot{q}} \delta \ddot{q} dt $$
Now, the second term inside the integral is normally handled as:
$$ \int \frac{\partial L}{\partial \dot{q}} \delta \dot{q} = \frac{\partial L}{\partial \dot{q}} \delta q - \int \frac{\partial}{\partial t}( \frac{\partial L}{\partial \dot{q}} ) \delta q $$
the third terms requires some more work, I'm having it as:
$$ \int \frac{\partial L}{\partial \ddot{q}} \delta \ddot{q} = \frac{\partial L}{\partial \ddot{q}} \delta \dot{q} - \frac{\partial}{\partial t}( \frac{\partial L}{\partial \ddot{q}} ) \delta q + \int \frac{\partial^2}{\partial^2 t}( \frac{\partial L}{\partial \ddot{q}} ) \delta q $$
So my variation (that in the case of symmetry must be zero up to boundary terms is)
$$ \delta A = \int \Big \{ \frac{\partial L}{\partial q} - \frac{\partial}{\partial t}( \frac{\partial L}{\partial \dot{q}} ) + \frac{\partial^2}{\partial^2 t}( \frac{\partial L}{\partial \ddot{q}} ) \Big \} \delta q dt + \Big \{ \frac{\partial L}{\partial \dot{q}} - \frac{\partial}{\partial t}( \frac{\partial L}{\partial \ddot{q}} ) \Big \} \delta q + \frac{\partial L}{\partial \ddot{q}} \delta \dot{q} $$
Now, I'm taking both boundary terms to be conserved currents:
$$ \frac{\partial L}{\partial \dot{q}} - \frac{\partial}{\partial t}( \frac{\partial L}{\partial \ddot{q}} ) $$
and
$$ \frac{\partial L}{\partial \ddot{q}} $$
But if the second is a conserved current, then its derivative is zero, and the conserved current becomes trivially identical to the first-order case
What the error in my derivation?