State Machine Animation doesn´t Work

I have an issue with the state machine

Grabación de pantalla 2025-05-05 a la(s) 7.11.07 p. m..mov

. Sometimes it works correctly, but other times it doesn’t. In the video, you can see where the line acts as the timer controller—when the line animation stops, the square animation also stops. In some cases, it stops correctly, but when it restarts, it doesn’t work. I need help please!! to figuring out what’s happening