fix g_warning