Fix some problems in localization.