fix issue with richtext