Fix regression in localization