fix localization bug