Fixed some small pathfinding errors.