Bug fixes for handling of localization parameters

Bug fixes for handling of localization parameters.