fix error when cannot switch locales