fixing locale string bug