adding a sanity check in g_factor() for nug option being unset