fix a bug of edit_conf