bug fix where locales could not be loaded