repair_sg_table_ext