Fixed broken pathfinding