Fix localization bug