g_lat(k) was wrong defined