fixed some bugs related to localization updates