Montage not working correctly with weapon animoffsets?


I was trying to set up the animations for the third person character. The character has default idle, jog and run states. When the character is not firing, everything seems to work fine, except the hands are not on the gun. But I think that can be fixed with little tweaks. I’m using the aim offset in the animations to rotate the character towards the direction camera facing. It seems to work correctly. Also I’m trying to use Anim montage for weapon firing. The issue is that when the fire buton is pressed,the character fires the weapon by turning towards the front direction, and then goes back to the normal direction is is facing. Is there any way to fix this issue? Any help would be appreciated. Thank you in advance.

[Video of the problem][1]