Fix the SGM loading