Fix incorrect get of locale