num_sge bug fix

This bug took me a whole night to fix it. Appreciate to my mom
for taking care of Kaylee.