Fix detect_locale bug