Taking direction into account after route lost.