g_listdeleted inifinite loop bug fixed