Fixed bug in ch_locale()
Fixed minor bug