1217 fixed sgs_ex.lua