fix localization attribute bug