bug fixing for Chinese char