fixing locale warnings