Attempts to fix the pathfinding