bug fix on rich text