Fix localization bug causing instant crashes