Fix wrong attributes for localization.