two smaller bugfixes for locales