fix toLocaleString legacy method bug 2