Fix g_local_work counting