error last waypoint search

hi , i put a picture with my problem.
on a game of cops and robbers…the enemy search last wypoint
and i need to search the more close waypoint…
here is a picture with more detail.

.

840881--31358--$rudder error3.jpg

some idea ?