human
Solve the following python programming problem given the following code:
def add_path_edit(self, layout, field, config_key, config_desc, config_val) : 
    options = { 
        
} 
    if (field.widget_options is not None) : 
        options = field.widget_options 
path_edit = QtGui.QWidget () 
    if ('label' in options) : 
        label_text = options ['label'] 
else : 
        label_text = config_desc 
label = QtGui.QLabel (label_text) 
    row = layout.rowCount () 
    layout.addWidget (label, row, 0, QtCore.Qt.AlignRight) 
    sub_layout = QtGui.QHBoxLayout () 
    sub_layout.setMargin (0) 
    sub_layout.setSpacing (5) 
    line_edit = QtGui.QLineEdit () 
    if (config_val is None) : 
        config_val = '' 
line_edit.setText (unicode (config_val)) 
    sub_layout.addWidget (line_edit) 
    path_edit.line_edit = line_edit 
    button_cls = QDirectoryChooserToolButton 
    button = button_cls (self, line_edit) 
    sub_layout.addWidget (button) 
    path_edit.setLayout (sub_layout) 
    layout.addWidget (path_edit, label_text, 1) 
    def call_field_changed() : 
        val = line_edit.text () 
        self.field_changed (config_key, field, val, config_val) 
line_edit.editingFinished.connect (call_field_changed) 
    return path_edit 

    
    

    Fix the buggy line: layout.addWidget (path_edit, label_text, 1)
assistant
#Here is Python program to fix the buggy line: layout.

layout.addWidget (path_edit, row, 1)