fix a bug for unusual text format
fix a bug for unusual text format