improve text format bug