fix locale errors