Gun animation re-positioning arms

I recently made an idle animation for my gun, it looks fine on the animation editors,
image

but when it plays ingame, it looks like this
image

I’ve already changed the animation priority, and yet it still does this

Is there a way I can fix this?