repair_sg_table