fix display of simple text and riche text.