fix an issue in case lg is none during tempalte restoration
fix an issue in case lg is none during tempalte restoration

steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge,steve-ord/daliuge