How do i make the player stop twitching when switching states in state machine?

Im using the default third person template, and i added an attack animation to it.

In the attack state, i blended the attack animation with the idle run blendspace so that it will quickly blend back to the idle pose smoothly…

This looks great and is working, but, about 0.5 seconds after the animation is finished, the player does this weird twitch, presumably because the attack state is switching back to the idle walk run state. It looks really weird because hes already in the idle pose before the twitch happens. Any ideas on how to fix this?

i found the answer, its to use montages instead of using the animation blueprint