pathfinding fix for max TU