small fixes for locale problems