Fixed bug in ch_locale()