fix bugs in x_editable plugin