There is no trigger for event 18, so your object instantly progresses from the search state to the return state in the same tick.
Also there is no point in adding a repeat 10 times in event 14, that will cause your object to find a path 10 times in one tick and keep overwriting itself.
Remember the entire event sheet runs once per tick. If you're doing anything over time, use states, tweens, and/or timer behaviours with triggers upon finishing.