Animation Acting weird

I have assigned the same idle animation for both weapons, but when i swap between weapons, the animation works good for one gun, but when i choose the other weapon, the hand acts weirdly and goes behind the gun for no reason. But when i swap back the first weapon, it works as it was suppose to work. I thought the problem was with the collision, but it’s not the issue. I don’t know what’s happening here!