fixed a bug in g_select when using ordergrof as topology