fix text format bug