fix string to wide bugs