fixes some locale problems