rich text fixed

fixed bug where rich text was not saved