fixed bugs in i18n