Sword doesn't stay attached to socket

Hello,
I am using a c++ AnimInstance script to play an animation montage, but the sword that is attached to a socket on the character doesn’t move alongside the socket and the sword stays at the location of where it was during the idle animation, when the animation montage is played. But when I use sprint, jump or dash it stays attached to the socket. To play the sprint, jump and dash animations, I am using the animation blueprint. How would I be able to update the location of the sword, so that it stays attached to the socket at all times?
Thank you in advance

I’m also having a very similar issue. Look forward to you getting an answer

It’s most likely because of how you did the animation group blending. Try to remove all blending in animation graph and see if it helps.