Fix a bug that character reduce length