fix some bugs cause by l10n file delete