fix sg_name bug