fix some pathfinding stuff