Fix finding frame shifts
Fix finding frame shifts

Appears that the wrong indices were used to determine the shifted
frames. This switches the index to correctly match the `for`-loop used
to iterate over each frame and apply each shift.

DudLab/nanshe_workflow,nanshe-org/nanshe_workflow