State Tree Transition Problem

Found out what was the problem for anyone with the same issue.
For some reason the Move To Location Or Actor node prevents from receiving a state event, causing not the change state instantly. I now use AI Move To.
Also in the same state, I had a generate location task before the moving task. but this task had on enter state a finish task with succeed which with AI Move To causes it to restart every frame, but worked with Move To Location Or Actor don’t know why. The solution delete the finish task after generate location enter state.