Fix bug with defaultLocale for preferredLocale.