rich text bug fixed