fixed return value of sgs_GetGlobal