Better locale attr fix