fix the locale methods