Spine animation problem



So i currently have this character which is using his running animation on track 0
Then when i press on the mouse button he will do a melee attack(While he is still running)

The problem is that the melee animation, does not always start at the beginning. So it lags 90% of the time and it looks very buggy. I've fixed the issue on other objects by setting the image_index to 0 when the animation first starts. But when i do it on this character the running animation restarts aswell, so instead the legs lag when you attack. Anybody know how i should fix this? Maybe just restart the animation for 1 track somehow?

Thanks in advance.