fix the localization bug