Fixed Steiner tree issue when no terminals selected