minor adjustment on sgs.getDefense (last several commits by lrl026)