Fixed some richtext issues