fixing attribute fetching in locale