Fixed not to delete g_gui