fix toLocaleString legacy method bug 3