Pathfinding correction