fixing configuration issue and prevent race condition in locales dropdown rendering