bug fix of g_hash_insert