correct a problem with availableLocales