oki, I just saw line 378 `if (gResourceCount >= langCount)` which means we do it only once.