Skeletal weapon mesh not inline with animation

I have created a socket on the character to attach the weapon to, I have made an animation blend space for when the weapon is carried at the hip and the weapon is perfectly in line with the animation. However, when it switches to the iron sight animation, the weapon goes completely out of line with the animation. In the animation preview, it stays inline but when actually in game, it moves.

In preview shown here:


In game shown here: