Find Nearest Actor Inconsistent Results

At 0:16, they start running towards the right cover, but they change the direction after half a second. It looks the code finds the correct cover, but then it runs again before the soldiers reach it.