fix to localization plugin