remove deprecation error with enforce_available_locales = true